﻿using Common.Base;

namespace GameGraphics.Components
{
    internal class Message
    {
        private ResultTypeEnum messageType;

        public Message(string text, ResultTypeEnum messageType, int lifeTime)
        {
            this.Text = text;
            this.messageType = messageType;
            this.Lifetime = lifeTime;
        }

        public string Text { get; private set; }

        public int Lifetime { get; private set; }

        public void ReduceLifeTime(int value)
        {
            this.Lifetime = this.Lifetime - value;
        }
    }
}